﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" Theme="admin_skin" CodeFile="RoleManager.aspx.cs"
    Inherits="Admin_Role_RoleManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色管理</title>
    <link href="../../App_Themes/css/admin_css.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <table class="table_rightFrame" cellpadding="0" cellspacing="0">
            <tr>
                <td align="right" style="text-align: left;" colspan="4">
                    <asp:Button ID="btnAddRole" runat="server" CausesValidation="False" OnClick="btnAddRole_Click"
                            SkinID="buttonSkin" Text="新建角色" Width="60px" /><asp:Button ID="btnDel" runat="server"
                                CausesValidation="False" Text="删除" SkinID="buttonSkin" OnClick="btnDel_Click1" OnClientClick="return confirm('确认要删除吗？');" /><asp:CheckBox ID="ckbAllSelect" runat="server" AutoPostBack="True" OnCheckedChanged="ckbAllSelect_CheckedChanged"
                        Text="全选" /></td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:GridView ID="gdvRole" runat="server" AutoGenerateColumns="False" DataKeyNames="RoleId"
                        OnRowCreated="gdvRole_RowCreated" OnSelectedIndexChanging="gdvRole_SelectedIndexChanging"
                        SkinID="gridviewSkin" Width="810px" OnRowDataBound="gdvRole_RowDataBound">
                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckbSelect" runat="server" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="计划编号">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RoleName" HeaderText="角色名称">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="700px" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" Width="700px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RoleId" HeaderText="计划编号" Visible="False">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <input id="hId" runat="server" type="hidden" /></td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                
                <br />
                
                 <table width="60%" cellpadding="0" cellspacing="1" border="0" style="background-color: #999999">
               <tr class="trTable">
                <td>   <br />
                 <table width="100%" cellpadding="2" cellspacing="0" border="0" style="background-color: #999999">
                        <tr class="trTable">
                            <td style="width: 100px">
                                角色名称 :&nbsp;
                            </td>
                            <td colspan="2" align="left">
                    <asp:TextBox ID="txtRoleName" runat="server" SkinID="textboxSkin"></asp:TextBox>
                                <asp:RequiredFieldValidator
                            ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRoleName" Display="Dynamic"
                            ErrorMessage="角色名称不可以为空" Font-Size="9pt"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr class="trTable">
                            <td colspan="3" align="center" style="text-align: left">
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                <asp:Button
                        ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="确认" SkinID="buttonSkin" /></td>
                        </tr>
                    </table>
                <br />
                </td>
                </tr>
                </table>
                   
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
